# gui
# import tkinter as tk
from tkinter import *

# 窗体
top = Tk()


# 按钮
def clicked():
    print("I am clicked")

# btn = Button()
# btn.pack()  # 布局到
# btn['text'] = "Click me"
# btn['command'] = clicked
# btn.config(text="点击", command=clicked)

# 或者构造函数
Button(text="click me", command=clicked).pack()
mainloop()
